package com.qhnu.zxjx.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @description: 用户登陆参数
 * @author: panpei
 * @date: 2019/11/25 11:35
 * @version: 1.0
 **/
@ApiModel(value = "用户登陆参数")
@Data
public class LoginVo {

    @ApiModelProperty(value = "学号")
    @NotBlank(message = "参数[userId]不能为空")
    private String userId;

    @ApiModelProperty(value = "密码")
    @NotEmpty(message = "参数[password]不能为空")
    private String password;
}
